@extends('admin.layout.index')

@section('content')
@if (count($errors) > 0)
    <div class="mws-form-message error">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif

	<div class="mws-panel grid_8">
        <div class="mws-panel-header">
            <span>客服信息修改</span>
        </div>
        <div class="mws-panel-body no-padding">
            <form class="mws-form" action="/admin/call/update" method="post">
                <input type="hidden" name="call_id" value="{{ $data['call_id'] }}">
                {{ csrf_field() }}

                <div class="mws-form-inline">
                    <div class="mws-form-row">
                        <label class="mws-form-label">客服昵称</label>
                        <div class="mws-form-item">
                            <input class="small" type="text" name="call_name" value="{{ $data['call_name'] }}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">QQ</label>
                        <div class="mws-form-item">
                            <input class="small" type="text" name="call_qq" value="{{ $data['call_qq'] }}">
                        </div>
                    </div>
                   
                    <div class="mws-form-row">
                        <label class="mws-form-label">手机号</label>
                        <div class="mws-form-item">
                            <input class="small" type="text" name="call_phone" value="{{ $data['call_phone'] }}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">邮箱地址</label>
                        <div class="mws-form-item">
                            <input class="small" type="text" name="call_email" value="{{ $data['call_email'] }}">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">客服状态</label>
                        <div class="mws-form-item clearfix">
                            <ul class="mws-form-list inline">
                                <li><input type="radio" name="call_status" value="1" @if($data['call_status'] == '显示') checked @endif> <label>显示</label></li>
                                <li><input type="radio" name="call_status" value="2" @if($data['call_status'] == '不显示') checked @endif> <label>不显示</label></li>
                           
                            
                             </ul>
                        </div>
                    </div>
                </div>
                <div class="mws-button-row">
                    <input value="修改" class="btn btn-danger" type="submit">
                    <input value="重置" class="btn " type="reset">

                </div>
            </form>
        </div>      
    </div>
@endsection